package com.tis.database.entitys.promis;

import java.io.Serializable;

import javax.persistence.*;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.tis.database.dao.ClsInstance;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the GL_POSTING_DETAILS database table.
 * 
 */
@Entity
@Table(name=ClsInstance.PROMIS_SCHEMA + ClsInstance.POINTER + "GL_POSTING_DETAILS")
@NamedQueries({
	@NamedQuery(name=GlPostingDetail.findAll, query="FROM GlPostingDetail c"),
	@NamedQuery(name=GlPostingDetail.findBySearch, query="FROM GlPostingDetail c WHERE 1 = 1 ")
})
public class GlPostingDetail implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Transient public static final String findAll = "GlPostingDetail_findAll";
	@Transient public static final String findBySearch = "GlPostingDetail_findBySearch";

	@EmbeddedId
	private GlPostingDetailPK id;
	
	/**
	 * (Javadoc)
	 * @see java.lang.Object#toString()
	 * Date =Oct 9, 2013 : 11:40:37 AM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	@Override
	public String toString()
	{
		return ToStringBuilder.reflectionToString(this);
	}

	@Column(name="ACCOUNT_CODE")
	private String accountCode;

	@Column(name="ACCOUNT_CODE2")
	private String accountCode2;

	@Column(name="ACTIVITY_BUDGET_CODE")
	private String activityBudgetCode;

	private BigDecimal amount;

	@Column(name="ARTICLE_TYPE")
	private String articleType;

	@Column(name="BASE_AMOUNT")
	private BigDecimal baseAmount;

	@Column(name="BATCH_NO")
	private BigDecimal batchNo;

	@Column(name="BOQ_ITEM")
	private String boqItem;

	@Column(name="BOQ_SERIAL")
	private BigDecimal boqSerial;

	@Column(name="BOQ_SERIES")
	private BigDecimal boqSeries;

	@Column(name="BOQ_TYPE")
	private String boqType;

	@Column(name="BRANCH_CODE")
	private BigDecimal branchCode;

	@Column(name="CHARGE_CODE")
	private String chargeCode;

	@Column(name="CHARGE_DESCRIPTION")
	private String chargeDescription;

	@Column(name="CL_OB")
	private String clOb;

	@Column(name="COST_CENTER")
	private String costCenter;

	@Column(name="COST_CODE")
	private String costCode;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="CREDIT_AMOUNT")
	private BigDecimal creditAmount;

	@Column(name="DEBIT_AMOUNT")
	private BigDecimal debitAmount;

	@Column(name="DEPARTMENT_CODE")
	private String departmentCode;

	private String description1;

	@Column(name="EXP_BATCH_NO")
	private String expBatchNo;

	@Column(name="EXP_CREATED_BY")
	private String expCreatedBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="EXP_CREATED_ON")
	private Date expCreatedOn;

	@Column(name="EXP_REF_CODE")
	private String expRefCode;

	@Column(name="FILE_ID")
	private BigDecimal fileId;

	@Column(name="FISCAL_PERIOD")
	private BigDecimal fiscalPeriod;

	@Column(name="FISCAL_YEAR")
	private BigDecimal fiscalYear;

	@Column(name="FLAG_MANUAL")
	private String flagManual;

	@Column(name="IMPORT_INV_REF")
	private String importInvRef;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	private String narration;

	@Column(name="PO_NO")
	private BigDecimal poNo;

	@Column(name="PO_SEQ_NO")
	private BigDecimal poSeqNo;

	@Column(name="PO_SERIES")
	private String poSeries;

	@Column(name="PO_TYPE")
	private String poType;

	@Column(name="POSTING_KEY")
	private String postingKey;

	@Column(name="POSTING_NUMBER")
	private BigDecimal postingNumber;

	@Column(name="POSTING_SERIES")
	private String postingSeries;

	private String project;

	@Column(name="REF_TENANT")
	private String refTenant;

	@Column(name="REFERENCE_CODE")
	private String referenceCode;

	private BigDecimal revision;

	private String status;

	@Column(name="SUB_ACCOUNT_CODE")
	private String subAccountCode;

	@Column(name="SUB_PROJECT")
	private String subProject;

	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY")
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO")
	private String syncExternalRefNo;

	@Column(name="SYNC_INSTANCE_NO")
	private String syncInstanceNo;

	@Column(name="SYNC_ISSTAGING")
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC")
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="UNIT_NUMBER")
	private String unitNumber;

	@Column(name="VAT_CODE")
	private String vatCode;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="VOUCHER_DATE")
	private Date voucherDate;
	
	@Column(name="IS_RESEND")
	private String isResend;

	public GlPostingDetail() {
	}

	/**
	 * @return the isResend
	 * Date =Oct 29, 2013 : 11:52:59 AM 
	 * CreateBy=Chatree Siangklom
	 * GlPostingDetail.java String
	 * TODO
	 */
	public String getIsResend() {
		return isResend;
	}



	/**
	 * @param isResend the isResend to set
	 * Date =Oct 29, 2013 : 11:52:59 AM 
	 * CreateBy=Chatree Siangklom
	 *  GlPostingDetail.java String
	 * TODO
	 */
	public void setIsResend(String isResend) {
		this.isResend = isResend;
	}



	public GlPostingDetailPK getId() {
		return this.id;
	}

	public void setId(GlPostingDetailPK id) {
		this.id = id;
	}

	public String getAccountCode() {
		return this.accountCode;
	}

	public void setAccountCode(String accountCode) {
		this.accountCode = accountCode;
	}

	public String getAccountCode2() {
		return this.accountCode2;
	}

	public void setAccountCode2(String accountCode2) {
		this.accountCode2 = accountCode2;
	}

	public String getActivityBudgetCode() {
		return this.activityBudgetCode;
	}

	public void setActivityBudgetCode(String activityBudgetCode) {
		this.activityBudgetCode = activityBudgetCode;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getArticleType() {
		return this.articleType;
	}

	public void setArticleType(String articleType) {
		this.articleType = articleType;
	}

	public BigDecimal getBaseAmount() {
		return this.baseAmount;
	}

	public void setBaseAmount(BigDecimal baseAmount) {
		this.baseAmount = baseAmount;
	}

	public BigDecimal getBatchNo() {
		return this.batchNo;
	}

	public void setBatchNo(BigDecimal batchNo) {
		this.batchNo = batchNo;
	}

	public String getBoqItem() {
		return this.boqItem;
	}

	public void setBoqItem(String boqItem) {
		this.boqItem = boqItem;
	}

	public BigDecimal getBoqSerial() {
		return this.boqSerial;
	}

	public void setBoqSerial(BigDecimal boqSerial) {
		this.boqSerial = boqSerial;
	}

	public BigDecimal getBoqSeries() {
		return this.boqSeries;
	}

	public void setBoqSeries(BigDecimal boqSeries) {
		this.boqSeries = boqSeries;
	}

	public String getBoqType() {
		return this.boqType;
	}

	public void setBoqType(String boqType) {
		this.boqType = boqType;
	}

	public BigDecimal getBranchCode() {
		return this.branchCode;
	}

	public void setBranchCode(BigDecimal branchCode) {
		this.branchCode = branchCode;
	}

	public String getChargeCode() {
		return this.chargeCode;
	}

	public void setChargeCode(String chargeCode) {
		this.chargeCode = chargeCode;
	}

	public String getChargeDescription() {
		return this.chargeDescription;
	}

	public void setChargeDescription(String chargeDescription) {
		this.chargeDescription = chargeDescription;
	}

	public String getClOb() {
		return this.clOb;
	}

	public void setClOb(String clOb) {
		this.clOb = clOb;
	}

	public String getCostCenter() {
		return this.costCenter;
	}

	public void setCostCenter(String costCenter) {
		this.costCenter = costCenter;
	}

	public String getCostCode() {
		return this.costCode;
	}

	public void setCostCode(String costCode) {
		this.costCode = costCode;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public BigDecimal getCreditAmount() {
		return this.creditAmount;
	}

	public void setCreditAmount(BigDecimal creditAmount) {
		this.creditAmount = creditAmount;
	}

	public BigDecimal getDebitAmount() {
		return this.debitAmount;
	}

	public void setDebitAmount(BigDecimal debitAmount) {
		this.debitAmount = debitAmount;
	}

	public String getDepartmentCode() {
		return this.departmentCode;
	}

	public void setDepartmentCode(String departmentCode) {
		this.departmentCode = departmentCode;
	}

	public String getDescription1() {
		return this.description1;
	}

	public void setDescription1(String description1) {
		this.description1 = description1;
	}

	public String getExpBatchNo() {
		return this.expBatchNo;
	}

	public void setExpBatchNo(String expBatchNo) {
		this.expBatchNo = expBatchNo;
	}

	public String getExpCreatedBy() {
		return this.expCreatedBy;
	}

	public void setExpCreatedBy(String expCreatedBy) {
		this.expCreatedBy = expCreatedBy;
	}

	public Date getExpCreatedOn() {
		return this.expCreatedOn;
	}

	public void setExpCreatedOn(Date expCreatedOn) {
		this.expCreatedOn = expCreatedOn;
	}

	public String getExpRefCode() {
		return this.expRefCode;
	}

	public void setExpRefCode(String expRefCode) {
		this.expRefCode = expRefCode;
	}

	public BigDecimal getFileId() {
		return this.fileId;
	}

	public void setFileId(BigDecimal fileId) {
		this.fileId = fileId;
	}

	public BigDecimal getFiscalPeriod() {
		return this.fiscalPeriod;
	}

	public void setFiscalPeriod(BigDecimal fiscalPeriod) {
		this.fiscalPeriod = fiscalPeriod;
	}

	public BigDecimal getFiscalYear() {
		return this.fiscalYear;
	}

	public void setFiscalYear(BigDecimal fiscalYear) {
		this.fiscalYear = fiscalYear;
	}

	public String getFlagManual() {
		return this.flagManual;
	}

	public void setFlagManual(String flagManual) {
		this.flagManual = flagManual;
	}

	public String getImportInvRef() {
		return this.importInvRef;
	}

	public void setImportInvRef(String importInvRef) {
		this.importInvRef = importInvRef;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getNarration() {
		return this.narration;
	}

	public void setNarration(String narration) {
		this.narration = narration;
	}

	public BigDecimal getPoNo() {
		return this.poNo;
	}

	public void setPoNo(BigDecimal poNo) {
		this.poNo = poNo;
	}

	public BigDecimal getPoSeqNo() {
		return this.poSeqNo;
	}

	public void setPoSeqNo(BigDecimal poSeqNo) {
		this.poSeqNo = poSeqNo;
	}

	public String getPoSeries() {
		return this.poSeries;
	}

	public void setPoSeries(String poSeries) {
		this.poSeries = poSeries;
	}

	public String getPoType() {
		return this.poType;
	}

	public void setPoType(String poType) {
		this.poType = poType;
	}

	public String getPostingKey() {
		return this.postingKey;
	}

	public void setPostingKey(String postingKey) {
		this.postingKey = postingKey;
	}

	public BigDecimal getPostingNumber() {
		return this.postingNumber;
	}

	public void setPostingNumber(BigDecimal postingNumber) {
		this.postingNumber = postingNumber;
	}

	public String getPostingSeries() {
		return this.postingSeries;
	}

	public void setPostingSeries(String postingSeries) {
		this.postingSeries = postingSeries;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getRefTenant() {
		return this.refTenant;
	}

	public void setRefTenant(String refTenant) {
		this.refTenant = refTenant;
	}

	public String getReferenceCode() {
		return this.referenceCode;
	}

	public void setReferenceCode(String referenceCode) {
		this.referenceCode = referenceCode;
	}

	public BigDecimal getRevision() {
		return this.revision;
	}

	public void setRevision(BigDecimal revision) {
		this.revision = revision;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSubAccountCode() {
		return this.subAccountCode;
	}

	public void setSubAccountCode(String subAccountCode) {
		this.subAccountCode = subAccountCode;
	}

	public String getSubProject() {
		return this.subProject;
	}

	public void setSubProject(String subProject) {
		this.subProject = subProject;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncInstanceNo() {
		return this.syncInstanceNo;
	}

	public void setSyncInstanceNo(String syncInstanceNo) {
		this.syncInstanceNo = syncInstanceNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public String getVatCode() {
		return this.vatCode;
	}

	public void setVatCode(String vatCode) {
		this.vatCode = vatCode;
	}

	public Date getVoucherDate() {
		return this.voucherDate;
	}

	public void setVoucherDate(Date voucherDate) {
		this.voucherDate = voucherDate;
	}

}